import { useContext } from "react";
import { connect } from "react-redux";

const VoteMain = function VoteMain(props) {
  const { supNum, oppNum } = props;
  return (
    <div>
      <p>支持人数：{supNum}人</p>
      <p>反对人数：{oppNum}人</p>
    </div>
  );
};

export default connect((state) => state.vote)(VoteMain);
